﻿using Microsoft.VisualStudio.TestTools.UnitTesting;
using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Threading.Tasks;

namespace Anagramme.Contracts.Tests
{
    [TestClass]
    public class RoundInfoTests
    {
        [TestMethod]
        public void SetWordsLengthRaisePropertyChanged()
        {
            string actual = string.Empty;
            string expected = "WordsLength";

            RoundInfo round = new RoundInfo();
            round.PropertyChanged += (s, e) => actual = e.PropertyName;
            round.WordsLength = 3;

            Assert.AreEqual(expected, actual);
        }
    }
}
